package cn.hxzy.common.domain.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Pattern;

@Data
public class InsertVo {
    @ApiModelProperty("用户id")
    @TableId(value = "user_id", type = IdType.AUTO)
    private Integer userId;
    @ApiModelProperty("用户名")
    private String userName;

    @ApiModelProperty("昵称")
    private String nickName;

    @ApiModelProperty("密码")
    private String userPass;

    @ApiModelProperty("身份证")
    private String userCard;

    @ApiModelProperty("学校id")
    private Integer schoolId;

    @ApiModelProperty("邮箱")
    private String userEmail;

    @ApiModelProperty("手机号")
    @Pattern(regexp = "^1[3-9]\\d{9}$", message = "手机号格式不正确")
    private String userPhone;

    @ApiModelProperty("性别")
    private String userSex;

    @ApiModelProperty("头像")
    private String userAvatar;

    @ApiModelProperty("用户类型")
    private String userType;

    @ApiModelProperty("用户状态")
    private String userStatus;
    @ApiModelProperty("专业编号")
    private Integer majorId;


}
